home *** CD-ROM | disk | FTP | other *** search
- /* Check LhA and LZX filetype ID */
- lf = '0a'x
- qu = '22'x
- options results
- if ~show('l','rexxsupport.library') then call addlib('rexxsupport.library',0,-30)
- if ~show('p','DOPUS.1') then do
- address command 'RequestChoice >NIL: "DOpus not running" OK'
- exit
- end
- address 'DOPUS.1'
- say
- say 'Choose an LhA archive from the file requester'
- address command 'RequestFile >t:id-1 RAM: title "Choose LhA archive"'
- say
- say 'Choose an LZX archive from the file requester'
- address command 'RequestFile >t:id-2 RAM: title "Choose LZX archive"'
- if open(infile,'t:id-1','r') then do
- a = readln(infile)
- call close(infile)
- end
- if open(infile,'t:id-2','r') then do
- b = readln(infile)
- call close(infile)
- end
- dopus getfiletype a ID
- c = result
- dopus getfiletype b ID
- d = result
- text = 'Edit line 39 in ArcDir.dopus5 to be: '
- textb = 'idtype = 'qu||strip(c,,'"')||' '||strip(d,,'"')||qu''
- say
- say text||textb
- say
- say 'Window will close in 60 seconds'
- call delay(3000)
- exit
-